﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebManager.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Template.Web.WebManager" %>




<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" runat="Server" class="pageForm" 
    onsubmit="return navTabSearch(this);" action="/SystemManage/Template/Web/WebManager.aspx">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">

		</ul>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="icon"  href="/SystemManage/Template/Web/SelectTemplate.aspx" target="navTab" title="所有模板"><span>修改模板</span></a></li>
			<li class="line">line</li>
            <li><a class="icon"  href="/SystemManage/Template/Web/WXConfig.aspx" target="navTab" title="微信平台设置"><span>微信平台设置</span></a></li>
            <li><a class="icon"  href="/SystemManage/Template/Web/ParamConfig.aspx" target="navTab" title="模板参数设置"><span>模板参数设置</span></a></li>
			<li class="line">line</li>
            <li><a class="add"  href="/SystemManage/Template/Web/PageDetail.aspx?tid=<%=UserTemplateId %>" target="navTab" rel="PageDetail" title="模板页明细"><span>添加模板页</span></a></li>
            <li><a class="delete" href="/SystemManage/Template/Web/PageDelete.aspx?tid=<%=UserTemplateId %>" target="selectedTodo" title="请确定要删除勾选模板页"><span>删除模板页</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="92">
	<table class="list" targetType="navTab">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				
				<th width="100px">名称</th>
				<th width="200px">效果图</th>
				<th width="120px">页面类型</th>
				<th width="100px">页面等级</th>
				<th width="120px" align="center">文章信息</th>
				<th width="120px" align="center">基本操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid"  rel=<%# Eval("Id")%>>
                    <td height="32px"><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td><%# Eval("Name")%></td>	   
                    <td align="center"><img src="<%# ZLCMS.Business.Util.FileKit.FirstFilePath(Eval("PreviewUrl"))%>" alt="效果图" height="150" /></td>
				    <td><%#ZLCMS.Business.Util.ParamKit.GetValue("template_pages_kind", Eval("Kind"), "未知")%></td>		    		
                    <td><%# ZLCMS.Business.Util.ParamKit.GetValue("template_pages_level", Eval("PageLevel"), "未知")%></td>	
				    
				    <td align=center>
                    <%#GetContent(Container.DataItem)%>
                    </td>
				    <td align=center>
                        <a href="/web/<%= ZLCMS.Business.Util.UserKit.GetUserAccountWithoutException()%>/<%# Eval("Id")%>/index.xhtml" target="_blank">预览</a>&nbsp;&nbsp;
                        
         				<a href="/SystemManage/Template/Web/PageDetail.aspx?uid=<%# Eval("Id")%>&tid=<%=UserTemplateId %>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" rel="PageDetail" title="模板页明细">编辑</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Template/Web/PageDelete.aspx?ids=<%# Eval("Id")%>&tid=<%=UserTemplateId %>" onclick="ZLAN_DWZ_EX.open(this);" target="ajaxTodo" title="请确定要删除当前模板页">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>

<%= _framePage.GetPagerContentHtml() %>

</div>
</form>